package com.ruoyi.apartment.service.impl;

import com.ruoyi.apartment.domain.City;
import com.ruoyi.apartment.mapper.CityMapper;
import com.ruoyi.apartment.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CityServiceImpl implements ICityService {
    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> selectCityList(City city) {
        return cityMapper.selectCityList(city);
    }

    @Override
    public List<City> selectCityListByProvinceId(Long provinceId) {
        return cityMapper.selectCityListByProvinceId(provinceId);
    }

    @Override
    public City selectCityById(Long id) {
        return cityMapper.selectCityById(id);
    }
}